import request from '@/utils/request'

// 查询支付宝支付配置列表
export function listZfbpayConfig(query) {
  return request({
    url: '/zfbpayConfig/zfbpayConfig/list',
    method: 'get',
    params: query
  })
}

// 查询支付宝支付配置详细
export function getZfbpayConfig(id) {
  return request({
    url: '/zfbpayConfig/zfbpayConfig/' + id,
    method: 'get'
  })
}

// 新增支付宝支付配置
export function addZfbpayConfig(data) {
  return request({
    url: '/zfbpayConfig/zfbpayConfig',
    method: 'post',
    data: data
  })
}

// 修改支付宝支付配置
export function updateZfbpayConfig(data) {
  return request({
    url: '/zfbpayConfig/zfbpayConfig',
    method: 'put',
    data: data
  })
}

// 删除支付宝支付配置
export function delZfbpayConfig(id) {
  return request({
    url: '/zfbpayConfig/zfbpayConfig/' + id,
    method: 'delete'
  })
}
